<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
	<title>Week 1 notes</title>
	<link rel="stylesheet" title="plain" type="text/css" href="plain.css" />
	<link rel="alternate stylesheet" title="colour" type="text/css" href="colour.css"/>
</head>
<body>

	<h2>Notes</h2>
	<p>Plan for this class:<ol>
		<li>Introduction<ul>
			<li>About me: <a href="lecturer.html">Paul Sinnett</a>.</li>
			<li><a href="module.html">Some notes on todays exercises.</a></li></ul></li>
		<li>Learning about source control<ul>
			<li>Create a Google Code account.</li>
			<li>(Doesn't have to be a gmail account.)</li>
			<li>Set up students on Google Code.</li>
			<li><a href="linking_tortoise_folders.html">Set up TortoiseSVN</a>.</li>
			<li>Practise using TortoiseSVN.</li></ul></li>
		<li>Creating programs in Visual Studio<ul>
		    <li>Walkthrough creating the hello world program:<ul>
			<li>creating a project</li>
			<li>what files are produced</li>
			<li>added a source file</li>
			<li>structure of a C++ program<ul>
			    <li>including header files</li>
			    <li>using namespaces</li>
			    <li>function prototype</li>
			    <li>why "main"?</li>
			    <li>return type</li>
			    <li>parameter list: wrapped in normal brackets</li>
			    <li>function body: wrapped in curly brackets</li>
			    <li>statements: end with a semi-colon</li>
			    <li>the "cout" stream</li>
			    <li>the "&lt;&lt;" operator</li>
			    <li>a string literal: use double quotes</li>
			    <li>the "endl" manipulator</li>
			    <li>the "return" statement</li>
			</ul></li>
			<li>compilation</li>
			<li>linking</li>
			<li>view the generated machine code</li>
		    </ul></li>
		    <li>Step through the creation of the adventure program:<ul>
			<li>output text to console using cout</li>
			<li>take input from the keyboard using cin</li>
			<li>declaring a variable to hold the input</li>
			<li>variable scope</li>
			<li>stop the console window from buffering the input</li>
			<li>label a section</li>
			<li>conditionally jump to a section based on input</li>
			<li>expressions</li>
			<li>boolean expressions</li>
			<li>the "==" operator</li>
			<li>a character literal: use single quotes</li>
			<li>store state in variables</li>
			<li>the "bool" variable type</li>
			<li>using a boolean type in a conditional</li>
			<li>using a logical "AND" "&amp;&amp;" in a conditional</li>
			<li>conditionally jump to another section based on variables</li>
		    </ul></li></ul></li>
		<li>Make your own adventure game</li>
	</p>
</body>
</html>
